<?php

class Ajax_AutocompleteController extends Mac_Controller {

    public function init() {
		$this->layout->disable();
        $this->useView('result', 'default');
    }

    /**
     * Example : http://www.manger-a-cote.local/ajax/autocomplete/cities/Longjumeau
     *
     * @param string $input
     */
    public function citiesAction($input) {
        $this->view->result = substr($input, 0, 1);
    }
}